using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsTimeLineResponse : GeneratedMessageLite<SnsTimeLineResponse, SnsTimeLineResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsTimeLineResponse, SnsTimeLineResponse.Builder>
		{
			private bool resultIsReadOnly;
			private SnsTimeLineResponse result;
			protected override SnsTimeLineResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsTimeLineResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsTimeLineResponse DefaultInstanceForType
			{
				get
				{
					return SnsTimeLineResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public string FirstPageMd5
			{
				get
				{
					return this.result.FirstPageMd5;
				}
				set
				{
					this.SetFirstPageMd5(value);
				}
			}
			public uint ObjectCount
			{
				get
				{
					return this.result.ObjectCount;
				}
				set
				{
					this.SetObjectCount(value);
				}
			}
			public IPopsicleList<SnsObject> ObjectListList
			{
				get
				{
					return this.PrepareBuilder().objectList_;
				}
			}
			public int ObjectListCount
			{
				get
				{
					return this.result.ObjectListCount;
				}
			}
			public uint NewRequestTime
			{
				get
				{
					return this.result.NewRequestTime;
				}
				set
				{
					this.SetNewRequestTime(value);
				}
			}
			public Builder()
			{
				this.result = SnsTimeLineResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsTimeLineResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsTimeLineResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsTimeLineResponse other = this.result;
					this.result = new SnsTimeLineResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsTimeLineResponse.Builder Clear()
			{
				this.result = SnsTimeLineResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsTimeLineResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsTimeLineResponse.Builder(this.result);
				}
				return new SnsTimeLineResponse.Builder().MergeFrom(this.result);
			}
			public override SnsTimeLineResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsTimeLineResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsTimeLineResponse)
				{
					return this.MergeFrom((SnsTimeLineResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsTimeLineResponse.Builder MergeFrom(SnsTimeLineResponse other)
			{
				return this;
			}
			public override SnsTimeLineResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsTimeLineResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsTimeLineResponse._snsTimeLineResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsTimeLineResponse._snsTimeLineResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
						if (num3 == 18u)
						{
							this.result.hasFirstPageMd5 = input.ReadString(ref this.result.firstPageMd5_);
							continue;
						}
					}
					else
					{
						if (num3 == 24u)
						{
							this.result.hasObjectCount = input.ReadUInt32(ref this.result.objectCount_);
							continue;
						}
						if (num3 == 34u)
						{
							input.ReadMessageArray<SnsObject>(num, text, this.result.objectList_, SnsObject.DefaultInstance, extensionRegistry);
							continue;
						}
						if (num3 == 40u)
						{
							this.result.hasNewRequestTime = input.ReadUInt32(ref this.result.newRequestTime_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SnsTimeLineResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public SnsTimeLineResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public SnsTimeLineResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public SnsTimeLineResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public SnsTimeLineResponse.Builder SetFirstPageMd5(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFirstPageMd5 = true;
				this.result.firstPageMd5_ = value;
				return this;
			}
			public SnsTimeLineResponse.Builder ClearFirstPageMd5()
			{
				this.PrepareBuilder();
				this.result.hasFirstPageMd5 = false;
				this.result.firstPageMd5_ = "";
				return this;
			}
			public SnsTimeLineResponse.Builder SetObjectCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasObjectCount = true;
				this.result.objectCount_ = value;
				return this;
			}
			public SnsTimeLineResponse.Builder ClearObjectCount()
			{
				this.PrepareBuilder();
				this.result.hasObjectCount = false;
				this.result.objectCount_ = 0u;
				return this;
			}
			public SnsObject GetObjectList(int index)
			{
				return this.result.GetObjectList(index);
			}
			public SnsTimeLineResponse.Builder SetObjectList(int index, SnsObject value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.objectList_[index] = value;
				return this;
			}
			public SnsTimeLineResponse.Builder SetObjectList(int index, SnsObject.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.objectList_[index] = builderForValue.Build();
				return this;
			}
			public SnsTimeLineResponse.Builder AddObjectList(SnsObject value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.objectList_.Add(value);
				return this;
			}
			public SnsTimeLineResponse.Builder AddObjectList(SnsObject.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.objectList_.Add(builderForValue.Build());
				return this;
			}
			public SnsTimeLineResponse.Builder AddRangeObjectList(IEnumerable<SnsObject> values)
			{
				this.PrepareBuilder();
				this.result.objectList_.Add(values);
				return this;
			}
			public SnsTimeLineResponse.Builder ClearObjectList()
			{
				this.PrepareBuilder();
				this.result.objectList_.Clear();
				return this;
			}
			public SnsTimeLineResponse.Builder SetNewRequestTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasNewRequestTime = true;
				this.result.newRequestTime_ = value;
				return this;
			}
			public SnsTimeLineResponse.Builder ClearNewRequestTime()
			{
				this.PrepareBuilder();
				this.result.hasNewRequestTime = false;
				this.result.newRequestTime_ = 0u;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int FirstPageMd5FieldNumber = 2;
		public const int ObjectCountFieldNumber = 3;
		public const int ObjectListFieldNumber = 4;
		public const int NewRequestTimeFieldNumber = 5;
		private static readonly SnsTimeLineResponse defaultInstance;
		private static readonly string[] _snsTimeLineResponseFieldNames;
		private static readonly uint[] _snsTimeLineResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasFirstPageMd5;
		private string firstPageMd5_ = "";
		private bool hasObjectCount;
		private uint objectCount_;
		private PopsicleList<SnsObject> objectList_ = new PopsicleList<SnsObject>();
		private bool hasNewRequestTime;
		private uint newRequestTime_;
		private int memoizedSerializedSize = -1;
		public static SnsTimeLineResponse DefaultInstance
		{
			get
			{
				return SnsTimeLineResponse.defaultInstance;
			}
		}
		public override SnsTimeLineResponse DefaultInstanceForType
		{
			get
			{
				return SnsTimeLineResponse.DefaultInstance;
			}
		}
		protected override SnsTimeLineResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public string FirstPageMd5
		{
			get
			{
				return this.firstPageMd5_;
			}
		}
		public uint ObjectCount
		{
			get
			{
				return this.objectCount_;
			}
		}
		public IList<SnsObject> ObjectListList
		{
			get
			{
				return this.objectList_;
			}
		}
		public int ObjectListCount
		{
			get
			{
				return this.objectList_.Count;
			}
		}
		public uint NewRequestTime
		{
			get
			{
				return this.newRequestTime_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasBaseResponse)
				{
					return false;
				}
				if (!this.hasObjectCount)
				{
					return false;
				}
				if (!this.BaseResponse.IsInitialized)
				{
					return false;
				}
				bool result;
				using (IEnumerator<SnsObject> enumerator = this.ObjectListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						SnsObject current = enumerator.get_Current();
						if (!current.IsInitialized)
						{
							result = false;
							return result;
						}
					}
					return true;
				}
				return result;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasFirstPageMd5)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.FirstPageMd5);
				}
				if (this.hasObjectCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.ObjectCount);
				}
				using (IEnumerator<SnsObject> enumerator = this.ObjectListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						SnsObject current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(4, current);
					}
				}
				if (this.hasNewRequestTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.NewRequestTime);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsTimeLineResponse()
		{
		}
		public SnsObject GetObjectList(int index)
		{
			return this.objectList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsTimeLineResponseFieldNames = SnsTimeLineResponse._snsTimeLineResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, snsTimeLineResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasFirstPageMd5)
			{
				output.WriteString(2, snsTimeLineResponseFieldNames[1], this.FirstPageMd5);
			}
			if (this.hasObjectCount)
			{
				output.WriteUInt32(3, snsTimeLineResponseFieldNames[3], this.ObjectCount);
			}
			if (this.objectList_.Count > 0)
			{
				output.WriteMessageArray<SnsObject>(4, snsTimeLineResponseFieldNames[4], this.objectList_);
			}
			if (this.hasNewRequestTime)
			{
				output.WriteUInt32(5, snsTimeLineResponseFieldNames[2], this.NewRequestTime);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasFirstPageMd5)
			{
				num ^= this.firstPageMd5_.GetHashCode();
			}
			if (this.hasObjectCount)
			{
				num ^= this.objectCount_.GetHashCode();
			}
			using (IEnumerator<SnsObject> enumerator = this.objectList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					SnsObject current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			if (this.hasNewRequestTime)
			{
				num ^= this.newRequestTime_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SnsTimeLineResponse snsTimeLineResponse = value as SnsTimeLineResponse;
			if (snsTimeLineResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != snsTimeLineResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(snsTimeLineResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasFirstPageMd5 != snsTimeLineResponse.hasFirstPageMd5 || (this.hasFirstPageMd5 && !this.firstPageMd5_.Equals(snsTimeLineResponse.firstPageMd5_)))
			{
				return false;
			}
			if (this.hasObjectCount != snsTimeLineResponse.hasObjectCount || (this.hasObjectCount && !this.objectCount_.Equals(snsTimeLineResponse.objectCount_)))
			{
				return false;
			}
			if (this.objectList_.Count != snsTimeLineResponse.objectList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.objectList_.Count; i++)
			{
				if (!this.objectList_[i].Equals(snsTimeLineResponse.objectList_[i]))
				{
					return false;
				}
			}
			return this.hasNewRequestTime == snsTimeLineResponse.hasNewRequestTime && (!this.hasNewRequestTime || this.newRequestTime_.Equals(snsTimeLineResponse.newRequestTime_));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsTimeLineResponse, SnsTimeLineResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<SnsTimeLineResponse, SnsTimeLineResponse.Builder>.PrintField("FirstPageMd5", this.hasFirstPageMd5, this.firstPageMd5_, writer);
			GeneratedMessageLite<SnsTimeLineResponse, SnsTimeLineResponse.Builder>.PrintField("ObjectCount", this.hasObjectCount, this.objectCount_, writer);
			GeneratedMessageLite<SnsTimeLineResponse, SnsTimeLineResponse.Builder>.PrintField<SnsObject>("ObjectList", this.objectList_, writer);
			GeneratedMessageLite<SnsTimeLineResponse, SnsTimeLineResponse.Builder>.PrintField("NewRequestTime", this.hasNewRequestTime, this.newRequestTime_, writer);
		}
		public static SnsTimeLineResponse ParseFrom(byte[] data)
		{
			return SnsTimeLineResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsTimeLineResponse MakeReadOnly()
		{
			this.objectList_.MakeReadOnly();
			return this;
		}
		public static SnsTimeLineResponse.Builder CreateBuilder()
		{
			return new SnsTimeLineResponse.Builder();
		}
		public override SnsTimeLineResponse.Builder ToBuilder()
		{
			return SnsTimeLineResponse.CreateBuilder(this);
		}
		public override SnsTimeLineResponse.Builder CreateBuilderForType()
		{
			return new SnsTimeLineResponse.Builder();
		}
		public static SnsTimeLineResponse.Builder CreateBuilder(SnsTimeLineResponse prototype)
		{
			return new SnsTimeLineResponse.Builder(prototype);
		}
		static SnsTimeLineResponse()
		{
			SnsTimeLineResponse.defaultInstance = new SnsTimeLineResponse().MakeReadOnly();
			SnsTimeLineResponse._snsTimeLineResponseFieldNames = new string[]
			{
				"BaseResponse",
				"FirstPageMd5",
				"NewRequestTime",
				"ObjectCount",
				"ObjectList"
			};
			SnsTimeLineResponse._snsTimeLineResponseFieldTags = new uint[]
			{
				10u,
				18u,
				40u,
				24u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.SnsTimeLineResponse.Descriptor, null);
		}
	}
}
